package ru.spbu.mm.diploma.common.resources;

import java.util.Locale;
import java.util.ResourceBundle;

/**
 *
 */
public class MessageFactory {
    ResourceBundle bundle;

    public MessageFactory() {
        bundle = ResourceBundle.getBundle("messages", Locale.US);
    }

    public String getMessage(String key) {
        return bundle.getString(key);
    }
}
